Tyepwriter having a calculation function

ABSTRACT

A typewriter having a calculation function includes a keyboard for inputting various character data and commands, a display for displaying the character data input from the keyboard, a printing mechanism for printing the character data input from the keyboard, an account data memory for temporarily storing the character data input from the keyboard, and a control device for controlling the printing mechanism to print the data stored in the account data memory in a preset format in response to a predetermined output command input from the keyboard. Accordingly, it is possible to simplify management of a bank account.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a typewriter having a calculationfunction. More particularly, the present invention relates to atypewriter having a balance management function which controls a balanceof a bank account, in response to deposits and withdrawals from the bankaccount. Furthermore, the present invention relates to a typewriterhaving a print function for printing records of deposits andwithdrawals, including the updated balance, in a predetermined format.

2. Description of Related Art

A conventional typewriter having a display and a printing mechanism hasa text memory for storing document data which comprises input charactersand tables. However, the conventional typewriter merely prints out thestored text and tables. The conventional typewriter does not have acalculation function for the processing calculations.

Therefore, a conventional electronic typewriter is unable to perform anydata processing procedures which require calculation processing, such aswhen managing a bank account balance. In order to perform suchcalculation processing procedures, it is necessary to buy an expensivepersonal computer having a calculation function.

When managing the balance of a bank account using a conventionaltypewriter, managing the balance is very complex. For example, to managethe account using a conventional typewriter, the following steps arenecessary: 1) making a table for recording the data of deposits andwithdrawals to the account, including the date, description, deposit orwithdrawal amount and balance amount; 2) calculating the balance aftereach deposit or withdrawal using a physically separate calculator or thelike; and 3) printing the table on a paper in a predetermined printingformat.

SUMMARY OF THE INVENTION

It is accordingly an object of the present invention to provide atypewriter having a calculation function which is capable of managing abalance of a bank account in response to deposits and withdrawals, andprinting a record of the deposits and withdrawals, including theresulting balance, in a predetermined tabular format.

According to a first preferred embodiment of the present invention asshown in FIG. 1 (described in solid line), a typewriter is providedwhich comprises an input means for inputting characters and commands, awithdrawal-deposit memory capable of storing a plurality of sets of datainput from the input means in a time series manner, each of the setsincluding date data, deposit or withdrawal description data and balancedata, balance calculating means for calculating an updated balanceaccording to the deposit or withdrawal data input from the input meansand the current balance data stored in the deposit-withdrawal memory andfor storing the updated balance into the deposit-withdrawal memory andcontrol means for printing the data stored in the withdrawal-depositmemory in the predetermined format according to a command input from theinput means.

In the typewriter according to the first preferred embodiment of thepresent invention, the plurality of sets of data are input from theinput means in a time series manner and are stored in thewithdrawal-deposit memory. An updated balance according to deposit orwithdrawal data input from the input means and current balance datastored in the deposit-withdrawal memory is calculated by the balancecalculating means, and the updated balance is stored into thedeposit-withdrawal memory. The data stored in the withdrawal-depositmemory in the predetermined format according to a command input frominput means is printed by the printing means. Accordingly, the presentinvention has an advantage that an operator can do a balance managementeasily and personally and can use a print-out as household account book.Additionally, the operator can perform balance management of the bankaccount without having to make a table or use a physically separatecalculation.

According to a second preferred embodiment of the present invention asshown in FIG. 1 (described in alternate long and short dash line andsolid line), a typewriter according to the first aspect mentioned aboveis provided, further comprising a display, and displaying means fordisplaying a message on the display asking whether the data stored inthe withdrawal-deposit memory should be printed or not, when thewithdrawal-deposit memory is full.

In addition to the operation of the typewriter according to theoperation of the typewriter according to the first preferred embodiment,the displaying means displays a message on the display asking whetherthe data stored in the withdrawal-deposit memory should be printed ornot, when the withdrawal-deposit memory is full.

According to a third preferred embodiment of the present invention asshown in FIG. 1 (described in alternate long and two short dashes lineand alternate long and short dash line and solid line), a typewriteraccording to the second preferred embodiment mentioned above isprovided, further comprising rewriting means for deleting data withoutupdate balance, when the withdrawal-deposit memory is full.

In addition to the operation of the typewriter according to the secondpreferred embodiment, the rewriting means deletes data without updatebalance, when the withdrawal-deposit memory is full.

Other objects and features of the invention will be more fullyunderstood from the following detailed description and appended claimswhen taken with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a functional block diagram illustrating the presentinvention;

FIG. 2 shows a perspective view of an electronic typewriter according toa preferred embodiment of the present invention;

FIG. 3 shows a block diagram of a control system in the electronictypewriter;

FIG. 4 shows a data structure in a deposit-withdrawal memory;

FIG. 5 is a schematic flowchart of a check print and balance managementcontrol routine;

FIG. 6 is a schematic flowchart of a withdrawal control routine;

FIG. 7 is a schematic flowchart of a position setting control routine;

FIG. 8 is a schematic flowchart of a date position setting controlroutine;

FIG. 9 is a schematic flowchart of a withdrawal position setting controlroutine;

FIG. 10 is a schematic flowchart of a description position settingcontrol routine;

FIG. 11 is a schematic flowchart of a positioning control routine;

FIG. 12 is a schematic flowchart of a withdrawal data input controlroutine;

FIG. 13 is a schematic flowchart of a withdrawal date data input controlroutine;

FIG. 14 is a schematic flowchart of a withdrawal amount data inputcontrol routine;

FIG. 15 is a schematic flowchart of a withdrawal description data inputcontrol routine;

FIG. 16 is a schematic flowchart of an input control routine in thewithdrawal control;

FIG. 17 is a schematic flowchart of a record control routine;

FIG. 18 is a schematic flowchart of a deposit control routine;

FIG. 19 is a schematic flowchart of a deposit data input controlroutine;

FIG. 20 is a schematic flowchart of a deposit date data input controlroutine;

FIG. 21 is a schematic flowchart of a deposit amount data input controlroutine;

FIG. 22 is a schematic flowchart of a deposit description data inputcontrol routine;

FIG. 23 is a schematic flowchart of an input control routine in thedeposit control;

FIG. 24 is a schematic flowchart of a clear control routine;

FIG. 25 shows a display of a main menu relating to balance management;

FIG. 26 shows a display of a prompt for setting withdrawal contents;

FIG. 27 shows a display of a prompt for setting print positions forcheck print;

FIG. 28 corresponds to FIG. 26, and shows a display of input data;

FIG. 29 shows a check, illustrating the preset print positions;

FIG. 30 shows a check corresponding to FIG. 29, printed with the inputdata;

FIG. 31 shows a display of a balance when it is positive;

FIG. 32 shows a display of a balance when it is negative;

FIG. 33 shows a paper, printed with the recorded contents in a presetformat;

FIG. 34 shows a display of a prompt for setting deposit contents;

FIG. 35 corresponds to FIG. 34, and shows a display of input data; and

FIG. 36 shows a clear menu relating to clear processing.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention will be described in detail with reference to theaccompanying drawings which illustrate preferred embodiments of thepresent invention applied to an English language electronic typewriterhaving a check printing capability.

FIG. 2 shows an electronic typewriter 1 having a body frame 2, akeyboard 3 provided at a front portion of the body frame 2, a type-wheeltype printing mechanism PM provided in the body frame 2 behind thekeyboard 3, and a liquid crystal display 10 provided at a rear portionof the keyboard 3. The liquid crystal display 10 displays a plurality oflines of characters including alphabetic letters, numerals and symbols.

As is conventional, the keyboard 3 is provided with a plurality ofcharacter keys including alphabet keys, numeral keys and symbol keys, aspace key, a return key, a plurality of cursor movement keys for movinga cursor on the display 10 in upper, lower, right and left directions,and an edit key for performing various editing functions. According tothe preferred embodiments, the keyboard 3 is further provided with abalance management key for performing a balance managing function for acurrent account, a document input key for inputting various documentdata, a record key for storing the input document data into a memory, aposition key for setting a print start position of the input documentdata, a store key for storing the print start position into anothermemory, a cancel key for quitting various functions, and a print key forprinting the document data.

The printing mechanism PM is of a conventional type wheel type includinga platen, a carriage, a type wheel, etc., and so the detailedexplanation thereof will be omitted.

A control system of the typewriter 1 is constructed as shown by theblock diagram shown in FIG. 3. Referring to FIG. 3, the keyboard 3, adisplay controller (LCDC) 11, the printing mechanism PM, and a drivingcircuit 13 for driving an alarm buzzer 12 are each connected to aninput-output interface 20 of a control device C. The display controller11 includes a display RAM (not shown) and generates and outputs displaydata to the liquid crystal display (LCD) 10.

The control device C comprises a CPU 22, the input-output interface 20,a CGROM (pattern data memory) 23, a ROM 25 and a RAM 30. Theinput-output interface 20, the CGROM 23, the ROM 25 and the RAM 30 areconnected to the CPU 22 through a bus 21. The CGROM 23 preliminarilystores dot pattern data to be displayed for various characterscorresponding to code data. The ROM 25 preliminarily stores a displaydrive control program for controlling the display controller 11 inaccordance with code data corresponding to characters input from thekeyboard 3, a print drive control program for driving the printingmechanism PM in accordance with the code data input or data read fromthe RAM 30, and a control program for controlling the check printing andbalance management functions of the present invention, which will behereinafter described in detail.

The RAM 30 includes an input buffer 31, a deposit-withdrawal memory 32,a balance memory 33, a print position memory 34, a counter 35, a currentposition memory 36, a save buffer 37, and a flag memory 38. The inputbuffer 31 temporarily stores document data as code data corresponding tocharacters input from the keyboard 3. The deposit-withdrawal memory 32stores sets of data, each having a deposit, withdrawal, balance, etc.,input from the keyboard 3. Preferably, the deposit-withdrawal memory hassufficient space to store 30 such sets. The balance memory 33 stores anupdated balance. The print position memory 34 stores the locations, as anumber of lines L and a number of columns C, defining each print startposition of such items as the date and the amount to be printed on acheck CH. The counter 35 counts the number of lines L and the number ofcolumns C defining a current print position to be updated, in accordancewith a line feed command and movement of the carriage, to obtain a linecount value LC and a column count value CC of the current printposition. When the printing mechanism PM is initialized by moving aprint head (i.e., the carriage) to an absolute origin, the values LC andCC of the counter 35, to define a print position corresponding to thisabsolute origin, are set to "0." The current position memory 36 storesthe line count value LC and the column count value CC obtained by thecounter 35.

The save buffer 37 temporarily stores various data. The flag memory 38stores flag data of a balance flag ZF. The flag ZF is set when theaccount balance is positive (i.e. the flag is "1"), whereas the flag ZFis reset when the balance is negative (i.e., the flag is "0"), and alsostores flag data of a display flag DF to be set when the balance isdisplayed. The typewriter 1 is provided with a backup power source formaintaining the contents stored in at least the deposit-withdrawalmemory 32, the balance memory 33, the print position memory 34 and theflag memory 38 when a power switch of the typewriter 1 is turned off orpower to the typewriter is otherwise lost. The input buffer 31 and thesave buffer 37 are similar in construction to the deposit-withdrawalmemory 32 with the exception that a memory area for the balance data isnot provided.

As shown in FIG. 4, date data, description data, withdrawal data,deposit data and balance data are recorded as one set in thedeposit-withdrawal memory 32, and a maximum recordable number of sets ofthese data is number of characters constituting the description data ineach set is preferably set to 30, for example.

Now, a control routine for the check printing and balance managementfunctions performed by the control device C of the electronic typewriter1 will be described with reference to the flowcharts shown in FIGS. 5 to24, in which reference characters Si (i=10, 11, 12 , . . . ) denotesteps in the control routine.

As shown in FIG. 5, if the balance management key of the keyboard 3 isoperated, control of the check printing and the balance managementfunctions is started. A main menu relating to the balance management isfirst displayed on the display 10 (S10). The main menu to be displayedcomprises for example, four items, as shown in FIG. 25. The four itemsare "withdrawal", labeled with the selection numeral "1"; "deposit",labeled with the selection numeral "2"; "clear" (which clears thecontents of the records), labeled with the selection numeral "3"; and"print" (which prints the contents of the records), labeled with theselection numeral "4".

If the numeral "1" key is operated to select the first item of"WITHDRAWAL", to print a check CH, steps S11 and S12 are answered "yes"(steps S11 and S12: Yes), and the withdrawal control routine set forthin FIG. 6 is executed by calling the withdrawal process subroutine(S13).

Referring to FIG. 6, if the withdrawal subroutine is called, controljumps to step S30. A withdrawal contents setting prompt is firstdisplayed on the display 10 (S30). For example, this setting prompt iscomposed of three items of "DATE," "WITHDRAWAL" and "DESCRIPTION" asshown in FIG. 26. Each of these three items to be set is followed by anunderlined field displayed on the right-hand side thereof, andcharacters are adapted to be input into each underlined field within thelengthwise range thereof.

If the position key is operated, so as to set a leading position of eachof the three items to be printed on the check CH in relation to thecheck CH (steps S31 and S32: Yes), the print position setting subroutineshown in FIG. 7 is executed by calling it in step S33. The position isused when setting up the control routine, or whenever the locations onthe check of the data to be printed changes. This may occur if the bankchanges its check style, or the type of check used by the operatorchanges. When operating the position key, it is assumed that the checkCH has been placed onto the typewriter 1 by the operator, and the printposition (print head position) of the carriage has been positioned at aleft upper corner of the check CH, as shown by the position P0 in FIG.29, for example. That is, the line count value LC and the column countvalue CC stored in the current position memory 36 are set to "0".

Referring to FIG. 7, if the print position setting subroutine is called,control jumps to step S50. The print position memory 34 is first cleared(S50), and a position setting prompt is displayed on the display 10(S51). For example, the position setting prompt comprises the threeitems of "DATE," "WITHDRAWAL" and "DESCRIPTION" as shown in FIG. 27. Ineach item, the number of lines L and the number of columns Crepresenting a print start position are displayed. These numbers areinitially displayed as "0". Then, a date position setting subroutine asshown in FIG. 8 is called in step S52.

Referring to FIG. 8, if the date position setting subroutine is called,control jumps to step S60. A block cursor is displayed at the item of"DATE" to wait for setting of a date position (S60), and the line countvalue LC and the column count value CC are reset (S61). To executeactual positioning control, the positioning subroutine shown in FIG. 11is called in step S62.

Referring to FIG. 11, if the positioning subroutine is called, controljumps to step 70. If a Y-direction (i.e., a direction perpendicular to aprint direction) moving key such as a return key or a pre-line key isoperated, steps S70 and S71 are answered "yes" (steps S70 and S71: Yes)and the line count value LC is incremented or decremented according tothe which Y-direction moving key is used (S72), and the platen isrotated forwardly or reversely in accordance with the line count valueLC thus obtained (S73). Furthermore, the number of the lines Lcorresponding to the line count value LC thus obtained is displayed(S74). Then, control is returned to step S70.

If an X-direction (i.e., the print direction moving key such as a spacekey or a backspace key is operated, steps S70 and S75 are answered "yes"and step S71 is answered "no" (steps S70 and S75: Yes; step S71: No),and the column count value CC is incremented or decremented accordingto-which the X-direction moving key is used (S76). The carriage is movedforward or backward in the print direction in accordance with the columncount value CC thus obtained (S77). Furthermore, the number of columns Ccorresponding to the column count value CC thus obtained is displayed(S78). Then, control is returned to step S70.

If the carriage has been moved to the desired print position, the decidekey is then operated (steps S70 and S79: Yes; steps S71 and S75: No).The line count value LC and the column count value CC obtained above arestored into a date memory area in the print position memory 34 (S80),and the positioning subroutine is then ended and control returns throughstep S62 to step S52. On the other hand, if the cancel key is operated(steps S70 and S81: Yes; steps S71, S75 and S79: No), this call to thepositioning subroutine is then ended and control returns to step S62,which then returns control to step S52. In either case, control thenproceeds to step S53. Further, if any key other than the Y-directionmoving key, the X-direction moving key, the decide key and the cancelkey is operated, the alarm buzzer 12 is actuated (S82), and control isreturned to S70.

Referring again to FIG. 7, the withdrawal position setting subroutineshown in FIG. 9 is then executed by calling it in step S53. Referring toFIG. 9, when the withdrawal position setting subroutine is started, theblock cursor is displayed at the item of "WITHDRAWAL" to wait forsetting of a withdrawal position (S64), and actual positioningsubroutine discussed above and shown in FIG. 11 is then called again(S65). After positioning the withdrawal line, control now returns fromthe positioning subroutine through step S65 to step S53. Control thenproceeds to step S54.

Referring once again to FIG. 7, the description position settingsubroutine shown in FIG. 10 is then executed by calling it in step S54.Referring to FIG. 10, when the description position setting subroutineis started, the block cursor is displayed at the item of "DESCRIPTION"to wait for the setting of a description position (S67). The positioningsubroutine shown in FIG. 11 is then executed once again by calling thepositioning subroutine in step S68. After positioning the descriptionline, control returns to step S54 through step S68. Control thenproceeds by returning to step S33.

The program then returns to S30 to display the input data as shown inFIG. 27 on the display 10. For example, as shown in FIGS. 27 and 29, thenumber of lines L and the number of columns C corresponding to a printstart position P1 of the item "DATE", the number of lines L and thenumber of columns C corresponding to a print start position P2 of theitem "WITHDRAWAL," and the number of lines L and the number of columns Ccorresponding to a print start position P3 of the item "DESCRIPTION" aredisplayed. These print position data have also been stored in thecorresponding predetermined memory areas of the print position memory34.

Thereafter, referring to FIG. 6, if the document input key is operated(steps S31 and S34: Yes; step S32: No), the withdrawal data inputsubroutine shown in FIG. 12 is called in step S35. Referring to FIG. 12,when this subroutine is started, the date data input subroutine shown inFIG. 13 is called in step S90. Referring to FIG. 13, when the date datainput subroutine is started, the block cursor is displayed at the itemof "DATE" to wait for inputting of a date (S100). The date data inputsubroutine shown in FIG. 16 is then called in step S101.

Referring to FIG. 16, when the date data input subroutine is started,the desired character keys are operated (steps S110 and S111: Yes).Then, the code data corresponding to the character keys so operated arestored into a date data memory area of the input data buffer 31 (S112),and characters corresponding to the character keys operated aredisplayed on the display 10 (S113). Then, the control is returned tostep S110. For example, as shown in FIG. 28, the date of "Aug. 5, 1991"is displayed on the right-hand side of the item "DATE" on the display10.

Subsequently, if the print key is operated (assuming the check CH is setand the print head is located at the initial position P0) so as toactually print the date input above on the check CH (steps S110 andS114: Yes; step S111: No), document data in the input data buffer 31 issearched. If any data exists in the input data buffer 31 (step S115:Yes), the platen and the carriage are driven according to the dateposition data stored in the print position memory 34 to feed the checkCH and move the print head to the print start position P1 previously set(S116). Then the date data stored in the input data buffer 31 is readout to start printing from the print start position P1 (S117). Afterprinting the input data on the check CH, the date data input subroutinereturns control through step S101 to step S90. Control then proceeds tostep S91.

On the other hand, if the cancel key is operated, so as not to print theinput data on the check CH (steps S110 and S118: Yes; steps S111 andS114: No), the date data input subroutine again returns control to stepS90. Further, if any key other than the character keys, the print keyand the cancel key is operated (step S110: Yes; steps S111, S114 andS118: No), the alarm buzzer 12 is actuated (S119), and control isreturned to S110. Further, if the print key is operated, and no dataexists in the input data buffer 31 (step S115: No), the alarm buzzer 12is also actuated (S119), and control is returned to S110.

Referring again to FIG. 12, the withdrawal data input subroutine shownin FIG. 14 is then called in step S91. Referring to FIG. 14, when thewithdrawal data input subroutine is started, the block cursor isdisplayed at the item of "WITHDRAWAL" to wait for inputting of awithdrawal (S103). Then, the actual input subroutine shown in FIG. 16 isthen called in step S104. After printing the "withdrawal" item, controlreturns to step S90 through step S104. Control then proceeds to stepS92.

Referring again to FIG. 12, the description data input subroutine shownin FIG. 15 is then called in step S92. Referring to FIG. 15, when thedescription data input subroutine is started, the block cursor isdisplayed at the item of "DESCRIPTION" to wait for inputting of adescription (S106). Then, the actual input subroutine shown in FIG. 16is then called in step S107. After printing the "description" item,control returns through steps S92 and S107 to step S35.

The program is then returned to S30 to display the input data as shownin FIG. 28 on the display 10. For example, as shown in FIG. 28, threesets of input characters corresponding to the three items of "DATE,""WITHDRAWAL" and "DESCRIPTION" are displayed on the display 10. Further,when printing the check CH by the operation of the print key, the threesets of input data are individually printed at the preset positions P1,P2 and P3 as shown in FIG. 30.

Next, referring to FIG. 6, if the record key is operated, so as torecord the input data (step S31: Yes; steps S32 and S34: No), the recordsubroutine shown in FIG. 17 is called in step S37. Referring to FIG. 17,when the record subroutine is started, the display flag DF is reset(S130). Then, the buffer data IBD in the input data buffer 31 is storedinto the save buffer 37 as buffer data BD (S131). The records M alreadyrecorded in the deposit-withdrawal memory 32 are then searched (S132).If the number of records M is smaller than the maximum number of recordsN recordable in the deposit-withdrawal memory 32 (step S133: Yes),withdrawal data WD included in the buffer data BD is subtracted frombalance data ZD stored in the balance memory 33, and the differenceobtained by the subtraction is stored as an updated balance data ZD intothe balance memory 33 (S140).

Then, the buffer data BD stored in the save buffer 37 and the updatedbalance data ZD stored in the balance memory 33 are additionally storedas new data into corresponding memory areas of the deposit-withdrawalmemory 32 (S141). Then, if the update balance data ZD is positive,(i.e., not less than 0 (step S142: Yes), the balance flag ZF in the flagmemory 38 is set to 1 (S143), and a positive balance according to theupdated balance data ZD is displayed in a normal display condition onthe display 10 (S144). For example, as shown in FIG. 31, the item of"BALANCE" and the plus balance are normally displayed on the display 10.

In contrast, if the update balance data ZD is negative (step S142: No),the balance flag ZF is reset to zero (S145), and a negative balanceaccording to the updated balance data ZD is displayed in a flashingcondition (blinking condition) on the display 10 (S146). For example, asshown in FIG. 32, the item of "BALANCE" and the negative balance areblinkingly displayed on the display 10. Thus, when the account becomesoverdrawn, the display of the balance blinks to provide a warning, sothat the overdrawn condition of the account can be confirmed.

Then, the display flag DF is set to 1 (S147). If any key of the keyboard3 is then operated (steps S135 and S136: Yes), the record subroutine isended and control returns to step S37 and proceeds to S30.

On the other hand, if the number of records M is equal to the maximumnumber of records N (step S133: No), a printing prompt indicatingwhether or not the recorded contents stored in the deposit-withdrawalmemory 32 are to be printed is displayed (S134) and control waits forany key operation (S135). At this time, the display flag DF is 0 (stepS136: No). Accordingly, if a character "Y" key is operated, so as toprint the recorded contents (steps S135 and S137: Yes), the recordedcontents are printed on a printing paper PP in a predetermined tabularformat (S138). For example, as shown in FIG. 33, the recorded contentsof the 30 sets stored in the deposit-withdrawal memory 32 are printed ona printing paper PP in a predetermined tabular format.

After printing the recorded contents, all the recorded contents of 30sets stored in the deposit-withdrawal memory 32 are cleared from thememory 32 (S139). Then, the step S140 and the subsequent steps areexecuted as described above. The new data to be recorded (which wouldhave gone into the "31st" recording area of the deposit-withdrawalmemory 32) can now be recorded in the first recording area of thedeposit-withdrawal memory 32. Thus, once all of the recorded contentsstored in the deposit-withdrawal memory 32 are cleared from the memory32, new updated balance data can be recorded in the first recording areaof the deposit-withdrawal memory 32.

On the other hand, if a character "N" key is operated under thecondition where the printing prompt is being displayed in S134, so asnot to print the recorded contents (steps S135 and S148: Yes; steps S136and S137: No), the printing of the recorded contents in step S138 is notexecuted. However, step S139 and the subsequent steps are executed.Further, if any key other than the character "Y" key and the character"N" key is operated under the condition where the printing prompt isbeing displayed in step S134 (step S135: Yes; steps S136, S137 and S148:No), the alarm buzzer 12 is actuated (S149), and control is returned toS135.

Referring once again to FIG. 6, if the cancel key is operated (steps S31and S38: Yes; steps S32, S34 and S36: No), the withdrawal subroutine isended and control returns to step S13. Control then proceeds to S10.However, if any key other than the position key, the document input key,the record key and the cancel key is operated (step S31: Yes; steps S32,S34, S36 and S38: No), the alarm buzzer 12 is actuated (S39), and thewithdrawal control is returned to S30.

Referring once again to FIG. 5, if the numeral "2" key is operated toselect the second "DEPOSIT" item (steps S11 and S12: No; step S14: Yes),the deposit subroutine shown in FIG. 18 is called in step S15.

Referring to FIG. 18, if the deposit subroutine is started, a depositcontents setting prompt is first displayed on the display 10 (S150). Forexample, this setting prompt is composed of three items of "DATE,""DEPOSIT" and "DESCRIPTION" as shown in FIG. 34. Each of these threeitems to be input is followed by an underlined field and characters areadapted to be input within each underlined field.

Thereafter, if the document input key is operated (steps S151 and S152:Yes), the deposit data input subroutine shown in FIG. 19 is called instep S153. Referring to FIG. 19, when the deposit data input subroutineis started, a date data input subroutine shown in FIG. 20 is called instep S160.

Referring to FIG. 20, when the date data input subroutine is started,the block cursor is displayed at the "DATE" field to wait for the inputof a date (S170), and a date data input subroutine shown in FIG. 23 iscalled in step S171.

Referring to FIG. 23, when the date data input subroutine is started,and desired character keys are operated (steps S180 and S181: Yes), codedata corresponding to the character keys operated are stored into a datedata memory area of the input data buffer 31 (S182), and characterscorresponding to the character keys operated are displayed on thedisplay 10 (S183). Then, control is returned to step S180. For example,as shown in FIG. 35, the date of "Aug. 5, 1991" is displayed on theright-hand side of the item "DATE" on the display 10.

When the cancel key is operated (steps S180 and 184: Yes; step S181:No), the date data input subroutine ends, control returns to step S160and control proceeds to S161. Further, if any key other than thecharacter keys and the cancel key is operated (step S180: Yes; stepsS181 and S184: No), the alarm buzzer 12 is activated (S185), and controlis returned to step S180.

Referring once again to FIG. 19, a deposit data input subroutine shownin FIG. 21 is then called in step S161. Referring to FIG. 21, when thedeposit data input subroutine is started, the block cursor is displayedat the "DEPOSIT" field to wait for the input of a deposit amount (S173),and the actual input subroutine shown in FIG. 23 is then called again instep S174. After inputting the "Deposit" item, control returns to stepS161 through step S174.

Referring once again to FIG. 19, a description data input subroutineshown in FIG. 22 is then called in step S162. Referring to FIG. 22, whenthe description data input subroutine is started, the block cursor isdisplayed at the "DESCRIPTION" field to wait for the input of a depositdescription (S176), and an actual input subroutine shown in FIG. 23 isthen called once again in step S177. After inputting the "Description"item, control returns to step S162 through step S177. Then, the programis returned to step S153 from step S162. Control then proceeds to stepS150 to display the input data as shown in FIG. 35 on the display 10.For example, as shown in FIG. 35, three sets of input characterscorresponding to the three "DATE," "DEPOSIT" and "DESCRIPTION" fieldsare displayed on the display 10.

Next, referring to FIG. 18, if the record key is operated, so as torecord the input data (steps S151 and S156: Yes; step S152: No), therecord subroutine shown in FIG. 17 and described above is called by stepS155.

On the other hand, if the cancel key is operated (steps S151 and S156:Yes; steps S152 and S154: No), this input subroutine is ended andcontrol returns to step S15, and proceeds to S10. Further, if any keyother than the document input key, the record key and the cancel key isoperated (step S151: Yes; steps S152, S154 and S156: No), the alarmbuzzer 12 is activated (S157), and control is returned to S150.

Referring once again to FIG. 5, when the numeral "3" key is operated, soas to clear the recorded contents (steps S11 and S16: Yes; steps S12 andS14: No), a clear subroutine shown in FIG. 24 is called by step S17.

Referring to FIG. 24, when the clear control is started, a clear menu isdisplayed on the display 10 (S190). For example, the clear menu to bedisplayed comprises two items as shown in FIG. 36. That is, the twoitems are "KEEP LAST DATA", labeled with the selection numeral "1",which clears the recorded data except the last data; and "CLEAR ALLDATA", labeled with the selection numeral "2", which clears all therecorded data.

If the numeral "1" key is operated (steps S191 and S192: Yes), therecorded data stored in the deposit-withdrawal memory 32, except for thelast data set, are cleared (S193). In other words, only the last dataset is kept in the memory 32, and all the remaining recorded data arecleared from the memory 32. Then, the last data set is transferred fromthe last recording area to the first recording area in the memory 32(S194). This clear subroutine ends, and control returns to step S17 andthen proceeds to step S10.

On the other hand, if the numeral "2" key is operated (steps S191 andS195: Yes; step S192: No), all the recorded data stored in thedeposit-withdrawal memory 32 are cleared from the memory 32 (S196). Thisclear subroutine ends, and control again returns to step S17 andproceeds to step S10. Further, if the cancel key is operated (steps S191and S197: Yes; steps S192 and S195: No), none of the recorded data iscleared, and this clear subroutine again ends, and control again returnsto step S17 and then proceeds to step S10. However, if any key otherthan the numeral "1" key, the numeral "2" key and the cancel key isoperated (step S191: Yes; steps S192, S195 and S197: No), the alarmbuzzer 12 is actuated (S198), and control is returned to step S191.

Referring once again to FIG. 5, if the numeral "4" key is operated, soas to print the recorded contents (steps S11 and S18: Yes; steps S12,S14 and S16: No), the recorded contents are printed on a printing paperPP in a predetermined tabular format in substantially the same procedureas in step S138 of the record subroutine. For example, as shown in FIG.33, the recorded contents stored in the deposit-withdrawal memory 32 areprinted on the printing paper PP in a predetermined tabular format.

On the other hand, if the cancel key is operated (steps S11 and S20:Yes; steps S12, S14, S16 and S18: No), the control routine for checkprinting and balance management ends, and control proceeds to a mainroutine (not shown). However, if any key other than the numeral "1" key,the numeral "2" key, the numeral "3" key, the numeral "4" key and thecancel key is operated (step S11: Yes; steps S12, S14, S16, S18 and S20:No), the alarm buzzer 12 is actuated (S21), and control is returned toS10.

As described above, the print start positions of data of charactersincluding alphabetic letters, numerals and symbols to be printed on thecheck CH in relation to the items of "DATE," "WITHDRAWAL" and"DESCRIPTION" can be individually set and stored into the print positionmemory 34. Furthermore, these data themselves can be individually storedinto the deposit-withdrawal memory 32, and they are individually printedat the preset print positions P1 to P3 on the check CH. Accordingly, thecheck printing operation for printing the necessary information atdesired positions on the check CH can be greatly simplified, and theefficiency of the operation can be improved.

Further, input data of a date, description, deposit or withdrawalamount, and updated balance are stored as a single set into thedeposit-withdrawal memory 32, and 30 such sets of data can be storedinto the memory 32. Furthermore, an updated balance after deposit orwithdrawal can be obtained from input data of deposit or withdrawal andthe current balance data stored in the deposit-withdrawal memory 32.Accordingly, management of a balance in an account can be personallyperformed.

In addition, when the updated balance becomes negative, this negativebalance is displayed in a blinking condition, so that the operator canconfirm whether or not the updated balance becomes negative upon writingthe check CH.

In modification, all of the recorded transactions stored in thedeposit-withdrawal memory 32 may be cleared, except for the latestupdated balance. The latest updated balance is then stored in the firstrecording area of the deposit-withdrawal memory 32. This is done whenthe number of recorded transactions in the deposit-withdrawal memory 32exceeds 30. This modification eliminates the need for the balance memory33. Further, the number of the records stored in the deposit-withdrawalmemory 32 is not necessary limited to 30 sets. The calculation functionof the present invention can be incorporated into various electronictypewriters provided with various types of printers, such as a wire dotprinter, thermal printer and a laser printer.

While advantageous embodiments have been chosen to illustrate theinvention, it will be understood by those skilled in the art thatvarious changes and modifications can be made therein without departingfrom the scope of the invention as defined in the appended claims.

What is claimed is:
 1. A method for managing an account balance of abank account using a typewriter, comprising the steps of:inputtingaccount data corresponding to a single transaction; recording theaccount data corresponding to the single transaction as a singletransaction record in a record memory, the record memory capable ofstoring a plurality of transaction records, the plurality of recordedtransaction records being stored indefinitely in the record memory;updating the account balance of the bank account based on the accountdata; displaying at least one of the account data and the updatedaccount balance on a display; and printing a portion of the plurality ofrecorded transaction records stored in the record memory; and inresponse to the printing step, automatically erasing the printedtransaction records from the record memory.
 2. The method of claim 1,wherein the step of inputting account data comprises the stepsof:inputting withdrawal data; and inputting deposit data.
 3. The methodof claim 2, wherein the withdrawal data includes at least one ofwithdrawal amount data, date data and description data.
 4. The method ofclaim 3, wherein the updating step includes the step of updating theaccount balance based on the withdrawal amount data.
 5. The method ofclaim 2, wherein the deposit account data includes at least one of adeposit account data, deposit date data and deposit description data. 6.The method of claim 5, wherein the updating step includes the step ofupdating the account balance based on the deposit amount data.
 7. Themethod of claim 1, wherein the step of printing the recorded accountdata of a plurality of recorded transaction records further comprisesthe step of printing the account data corresponding to each transactionrecord.
 8. The method of claim 7, wherein all the recorded account datais printed.
 9. The method of claim 8, wherein all the recorded accountdata is erased.
 10. The method of claim 8, wherein the recording stepincludes recording the updated account balance with the account datacorresponding to a single transaction.
 11. The method of claim 10,wherein all the recorded account data is erased except for the updatedbalance corresponding to a last transaction.
 12. The method of claim 1,wherein the displaying step includes displaying a positive updatedaccount balance in a first manner, and displaying a negative updatedaccount balance in a second manner.
 13. The method of claim 1, whereinthe first manner is a constant display, and the second manner is ablinking display.
 14. The method of claim 1, further comprising the stepof displaying a message when account data corresponding to the pluralityof transaction records are stored in the second memory.
 15. A typewriterhaving a calculation function, comprising:an input means for inputtingcharacter data and commands; a display means for displaying the inputtedcharacter data; print means for printing the inputted character data;calculation means for determining an updated account balance based onthe inputted character data; account data memory means for indefinitelystoring the inputted character data and the updated account balance of asingle bank account, the account data memory means capable of storingdata corresponding to a fixed predetermined plural number oftransactions; print control means for controlling the print means toprint the character data and updated account balance from a portion ofthe plurality of recorded transactions stored in the account data memoryin a preset format in response to a print command, wherein the printcontrol means automatically erases the printed transactions from theaccount data memory in response to printing the portion of the pluralityof recorded transactions; and control means for controlling the displaymeans, the account data memory means and the print control means inresponse to the inputted commands.
 16. The typewriter of claim 15,wherein the inputted character data comprises at least one of date data,description data, withdrawal amount data, and deposit account data. 17.The typewriter of claim 15, wherein the account data memory means storesthe inputted character data corresponding to a single transaction as asingle transaction record, and the print control means further controlsthe print means to print the portion of the plurality of transactionrecords stored in the account data memory means in a predeterminedtabular form in response to the inputted commands.
 18. The typewriter ofclaim 15, further comprising a warning means for indicating when theaccount balance is overdrawn.
 19. The typewriter of claim 18, whereinthe warning means comprises at least one of an audible alarm and avisual alarm, the visual alarm being displayed on the display means. 20.The typewriter of claim 19, wherein the visual alarm comprisesdisplaying the account balance in a first state when it is notoverdrawn, and displays the account balance in a second state when it isoverdrawn.
 21. The typewriter of claim 20, wherein the first state is anon-blinking mode, and the second state is a blinking mode.
 22. Thetypewriter of claim 15, wherein the displaying means displays a messagewhen character data corresponding to the plurality of transactions arestored in the account data memory means.